#pragma once

#include "ToolBase.h"

namespace ParticleEngine
{

	class ToolConnector : public ToolBase
	{
	public:
		ToolConnector(Engine& NewEng);
		~ToolConnector();

		virtual void		MouseMove(const Vec<2, float> NewMouseSpacePos);
		virtual void		MouseDownLeft();
		virtual void		MouseDownRight();

		virtual bool		GetBindNew(){ return BindNew; };
		virtual void		SetBindNew(bool NewBindNew){ BindNew = NewBindNew; };

		static const DescriptorTool Descriptor;

	protected:
		virtual void		CreateArrayPos();
		virtual void		LimitateMouse();

	private:
		void				AddParticles();
		void				RemoveParticles();
	};

}